#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <netdb.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/socket.h>
#include <iostream>
#include "multi.pb.h"
#include "hmac.h"
#include <openssl/hmac.h>



#define MAXBUFSIZE 65536

//#define MULTICASTIP "224.0.0.1"
//#define CLIENT_MULTICASTPORT "3200"


class udp_receiver
{
public:
	udp_receiver(std::string const& multicastAddrString, int port);

	server::Block getBlock(std::string &ip);

	~udp_receiver();
private:
	int sock;
};
